package com.icode50.spring.model;

import org.camunda.bpm.engine.impl.persistence.entity.SuspensionState;

/**
 * 前端数据模型
 * @author allenlin
 */
public class MyProcessDefinition {

	protected String id;
	protected String key;
	protected int revision = 1;
	protected int version;
	protected String name;
	protected String category;
	protected String deploymentId;
	protected String resourceName;
	protected Integer historyLevel;
	protected String diagramResourceName;
	protected int suspensionState = SuspensionState.ACTIVE.getStateCode();
	protected String tenantId;
	protected String versionTag;
	protected Integer historyTimeToLive;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getDeploymentId() {
		return deploymentId;
	}
	public void setDeploymentId(String deploymentId) {
		this.deploymentId = deploymentId;
	}
	public String getResourceName() {
		return resourceName;
	}
	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}
	public Integer getHistoryLevel() {
		return historyLevel;
	}
	public void setHistoryLevel(Integer historyLevel) {
		this.historyLevel = historyLevel;
	}
	public String getDiagramResourceName() {
		return diagramResourceName;
	}
	public void setDiagramResourceName(String diagramResourceName) {
		this.diagramResourceName = diagramResourceName;
	}
	public String getTenantId() {
		return tenantId;
	}
	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}
	public String getVersionTag() {
		return versionTag;
	}
	public void setVersionTag(String versionTag) {
		this.versionTag = versionTag;
	}
	public Integer getHistoryTimeToLive() {
		return historyTimeToLive;
	}
	public void setHistoryTimeToLive(Integer historyTimeToLive) {
		this.historyTimeToLive = historyTimeToLive;
	}
	public MyProcessDefinition(String id, String key, int version, String name, String category, String deploymentId,
			String resourceName, Integer historyLevel, String diagramResourceName, String tenantId, String versionTag,
			Integer historyTimeToLive) {
		super();
		this.id = id;
		this.key = key;
		this.version = version;
		this.name = name;
		this.category = category;
		this.deploymentId = deploymentId;
		this.resourceName = resourceName;
		this.historyLevel = historyLevel;
		this.diagramResourceName = diagramResourceName;
		this.tenantId = tenantId;
		this.versionTag = versionTag;
		this.historyTimeToLive = historyTimeToLive;
	}
	@Override
	public String toString() {
		return "ProcessDefinitionEntity [id=" + id + ", key=" + key + ", revision=" + revision + ", version=" + version
				+ ", name=" + name + ", category=" + category + ", deploymentId=" + deploymentId + ", resourceName="
				+ resourceName + ", historyLevel=" + historyLevel + ", diagramResourceName=" + diagramResourceName
				+ ", suspensionState=" + suspensionState + ", tenantId=" + tenantId + ", versionTag=" + versionTag
				+ ", historyTimeToLive=" + historyTimeToLive + "]";
	}
}
